package com.potenza.training.dictionary.controller;

import com.potenza.training.dictionary.entity.HopeAddress;
import com.potenza.training.dictionary.entity.HopeMinSalary;
import com.potenza.training.dictionary.server.HopeAddressService;
import com.potenza.training.dictionary.server.HopeMinSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hope")
public class HopeMinSalaryController {

    @Autowired
    private HopeMinSalaryService hopeMinSalaryService;

    /**
     * 获取所有的最低薪资
     * @return
     */
    @GetMapping("/minsalary")
    public List<HopeMinSalary> findAll(){
        return hopeMinSalaryService.findAll();
    }
}
